/*
 * Copyright (c) 2007 Compl Yue Still, All Rights Reserved.
 */

package hbi.wire.as3.host
{
	import flash.utils.*;
	import hbi.as3.Long;

	public class Int64 implements DataTag
	{
		
		private var _value:*;
		
		public function get tagValue():*
		{
			return _value;
		}
		
		public function reset():void
		{
			_value = undefined;
		}
		
		public function processIncomingData(input:IDataInput):Boolean
		{
			if(input.bytesAvailable < 8) return false;
			var high:int = input.readInt();
			var low:uint = input.readUnsignedInt();
			var value:Long = new Long();
			value.setValue(high, low);
			_value = value;
			return true;
		}
		
	}
}
